#include<stdio.h>
int main()
{
	int num,n,i;
	scanf("%d",&n);
	num=1;
	for(i=n-1;i>=1;i--) {
		num=(num+1)*2;
	}
	printf("%d\n",num);
	return 0;
 } 
